<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Vue和Jquery.js一起使用</title>
    <script src="../assets/js/vue.js"></script>
    <script src="../assets/js/jquery-1.12.4.js"></script>
</head>
<body>
    <h1>Vue和Jquery.js一起使用</h1>
    <hr>
    <div id="app">
        {{message}}
    </div>
</body>
<script>
    var app = new Vue({
        el:"#app",
        data:{ 
            message:"helloworld"
        },
        mounted() {
            $("#app").html("我是jquery变换过来的")
        },
        methods: {
            add(){
                console.log("我调用了add的方法")
            }
        }
    })
    //实例调用自定义方法
    app.add()
</script>
</html>